package com.qilu.pe.ui.activity;

import android.os.Bundle;

import com.qilu.pe.R;
import com.qilu.pe.base.Base2Activity;
import com.qilu.pe.dao.bean.IndicatorStandard;
import com.qilu.pe.ui.adapter.IndicatorStandardAdapter;
import com.ruitu.arad.base.BaseActivity;

import java.util.ArrayList;
import java.util.List;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

// 解读详情
public class ExplainDetailActivity extends Base2Activity {
    private RecyclerView rcv_indicator_standard;// 检测结果以及指标列表

    private IndicatorStandardAdapter adapter;// 检测以及指标列表adapter
    private List<IndicatorStandard> indicatorStandardList = new ArrayList<>();

    @Override
    protected int getLayoutRes() {
        return R.layout.activity_explain_detail;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        rcv_indicator_standard = findViewById(R.id.rcv_indicator_standard);

        LinearLayoutManager manager = new LinearLayoutManager(this);
        adapter = new IndicatorStandardAdapter(this);
        rcv_indicator_standard.setLayoutManager(manager);
        rcv_indicator_standard.setAdapter(adapter);
        for (int i = 0; i < 3; i++) {
            indicatorStandardList.add(new IndicatorStandard());
        }
        adapter.setDataList(indicatorStandardList);

        setHeadTitle("解读详情");
    }
}